import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    userType: '1',
    isBindPhone: true,
    codeInvalid: false,
    bindPhoneParams: {}
  },
  getters: {},
  mutations: {
    setUserType(state, type) {
      state.userType = type;
    },
    setIsBindPhone(state, getData) {
      state.isBindPhone = getData;
    },
    setBindPhoneParams(state, getData) {
      state.bindPhoneParams = getData;
    },
    setCodeInvalid(state, getData) {
      state.codeInvalid = getData;
    }
  }
})
